From d123f22841442ee4014eb4e5a58fdcc8a8a25843 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 7 Nov 2018 08:25:07 -0600 Subject: [PATCH] Preface all pgwui settings with "pgwui." --- src/pgwui_core/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pgwui_core/core.py b/src/pgwui_core/core.py index fe14ccf..38e69db 100644 --- a/src/pgwui_core/core.py +++ b/src/pgwui_core/core.py @@ -1620,8 +1620,8 @@ class DBConnector(object): database=self.db, user=self.user, password=self.password, - host=registry.settings['pg_host'], - port=registry.settings['pg_port']) + host=registry.settings['pgwui.pg_host'], + port=registry.settings['pgwui.pg_port']) except psycopg2.OperationalError: errors = [self.authfailerror_factory()] havecreds = False @@ -1810,7 +1810,8 @@ class UnsafeUploadEngine(DBConnector): if errors: conn.rollback() else: - if ast.literal_eval(self.uh.request.registry.settings['dry_run']): + if ast.literal_eval( + self.uh.request.registry.settings['pgwui.dry_run']): conn.rollback() errors.append(self.dryrunerror_factory()) else: -- 2.34.1